#!/usr/bin/sh

if test -z "$1"
then
    echo "need install path"
    exit
else
    dest=$1
fi

echo "installing to:" $dest

dest_gnc="$dest/gnc"
dest_lib="$dest/lib/libgordon.a"

mkdir -p $dest/lib
cp gnc-s2 $dest_gnc
cp libgordon-s2.a $dest_lib
rm -rf $dest/std
cp -r std $dest/

echo "in tree:"
sha1sum gnc-s2
sha1sum libgordon-s2.a
echo "installed:"
sha1sum $dest_gnc
sha1sum $dest_lib
